package com.zhoug.zmui3.calendar;

import androidx.annotation.NonNull;

/**
 * @Author: zhoug
 * @Date: 2024-03-21
 * @Description:
 */
public class CalendarDay {
    private String date;//2024-02-12
    private boolean isCurrentMonth;//是否是本月
    private int day;
    private TagData tagData;
    private Object object;

    public CalendarDay(@NonNull String date, boolean isCurrentMonth) {
        this.date = date;
        this.isCurrentMonth = isCurrentMonth;
        try {
            day = Integer.parseInt(date.split("-")[2]);
        } catch (NumberFormatException e) {
            e.printStackTrace();
        }
    }


    public int getDay() {
        return day;
    }

    public String getDate() {
        return date;
    }

    public TagData getTagData() {
        return tagData;
    }

    public void setTagData(TagData tagData) {
        this.tagData = tagData;
    }

    public boolean isCurrentMonth() {
        return isCurrentMonth;
    }

    public Object getObject() {
        return object;
    }

    public void setObject(Object object) {
        this.object = object;
    }
}
